package com.neuedu.service;

import com.neuedu.dao.UserinfoDao;
import com.neuedu.dao.UserinfoDaoImpl;
import com.neuedu.pojo.Userinfo;

public class UserinfoServiceImpl implements UserinfoService {
    private UserinfoDao ud = new UserinfoDaoImpl();
    @Override
    public int userEmailCheck(String email) {
        // 调用Dao
        return ud.userEmailCheck(email);
    }
    @Override
    public int userReg(Userinfo userinfo) {
        return ud.userReg(userinfo);
    }

    @Override
    public Userinfo userLogin(Userinfo userinfo) {
        return ud.userLogin(userinfo);
    }

    @Override
    public int uploadHeadImg(Userinfo userinfo) {
        return ud.uploadHeadImg(userinfo);
    }
}
